package com.zheng.shop.rpc.api;

import com.zheng.common.base.BaseService;
import com.zheng.shop.common.exception.ShopException;
import com.zheng.shop.dao.model.ShopBrand;

import java.util.List;
import java.util.Map;

/**
* ShopBrandService接口
* Created by shuzheng on 2017/11/7.
*/
public interface ShopBrandService extends BaseService<ShopBrand> {
    boolean createBrand(ShopBrand brand) throws ShopException;

    boolean updateBrand(ShopBrand brand) throws ShopException;

    boolean deleteBrand(List<Integer> ids) throws ShopException;

    boolean updateSort(List<ShopBrand> brandList) throws ShopException;

    int selectMaxSort();

    List<Map<String,Object>> selectBrandCategoryMap(Integer brandId);

    boolean updateBrandCategory(Integer brandId,List<Integer> productCategoryIds)throws ShopException;
}